package sudroid.json;

import java.util.Iterator;

public class CookieList
{
  public static JSONObject toJSONObject(String paramString)
    throws JSONException
  {
    JSONObject localJSONObject1 = new JSONObject();
    JSONTokener localJSONTokener = new JSONTokener(paramString);
    while (true)
    {
      if (!localJSONTokener.more())
        return localJSONObject1;
      String str1 = Cookie.unescape(localJSONTokener.nextTo(61));
      int i = localJSONTokener.next(61);
      String str2 = Cookie.unescape(localJSONTokener.nextTo(59));
      JSONObject localJSONObject2 = localJSONObject1.put(str1, str2);
      int j = localJSONTokener.next();
    }
  }

  public static String toString(JSONObject paramJSONObject)
    throws JSONException
  {
    int i = 0;
    Iterator localIterator = paramJSONObject.keys();
    StringBuffer localStringBuffer1 = new StringBuffer();
    while (true)
    {
      if (!localIterator.hasNext())
        return localStringBuffer1.toString();
      String str1 = localIterator.next().toString();
      if (paramJSONObject.isNull(str1))
        continue;
      if (i != 0)
        StringBuffer localStringBuffer2 = localStringBuffer1.append(59);
      String str2 = Cookie.escape(str1);
      StringBuffer localStringBuffer3 = localStringBuffer1.append(str2);
      StringBuffer localStringBuffer4 = localStringBuffer1.append("=");
      String str3 = Cookie.escape(paramJSONObject.getString(str1));
      StringBuffer localStringBuffer5 = localStringBuffer1.append(str3);
      i = 1;
    }
  }
}

/* Location:           D:\Program Files\eclipse\apktool-r01-3\新浪微博\classes.dex.dex2jar.jar
 * Qualified Name:     sudroid.json.CookieList
 * JD-Core Version:    0.6.0
 */